package org.crl.blogsystem.service;

import org.crl.blogsystem.entity.User;
import org.crl.blogsystem.entity.dto.UserDTO;
import org.springframework.web.multipart.MultipartFile;

import java.util.Set;

public interface IUserService {
    boolean isLogin(Long userId);

    User add(UserDTO userDTO);

    User update(Long id, UserDTO userDTO);

    void delete(Long id);

    Set<User> getFollowing(Long userId);

    Set<User> getFollowers(Long userId);

    User getById(Long userId);

    String uploadAvatar(MultipartFile file);

    boolean isFollowing(Long userId);

    Integer doFollow(Long userId);

    boolean changePassword(Long userId, String oldPassword, String newPassword);

}
